// pages/basicInfo/basicInfo.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    name: "张媛123",
    birthday: "1973-08-01",
    identity: "母亲"
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function(options) {
    let basicInfo = wx.getStorageSync("basicInfo");
    wx.removeStorageSync("basicInfo");
    this.setData({
      name: basicInfo.name,
      birthday: basicInfo.birthday,
      identity: basicInfo.identity
    })
  },
  toEditBirthday() {
    let that = this;
    wx.navigateTo({
      url: '/pages/mine/editBirthday/editBirthday?birthday=' + that.data.birthday,
    })
  }
})